package com.xjtu.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Past;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
public class MedicalVisitDto implements Serializable {

    /**
     * 老人ID
     */
    private Integer elderlyId;
    /**
     * 陪诊人姓名
     *
     */

    @NotBlank
    private String accompanyingPerson;
    /**
     * 医生姓名
     */

    @NotBlank
    private String doctorName;
    /**
     * 是否欠费
     */

    @NotNull
    private Integer isOutstandingPayment;
    /**
     * 诊断结果
     */

    @NotBlank
    private String diagnosisResult;
    /**
     * 门诊或住院
     */

    //todo:需要校验！
    @NotNull
    private Object visitType;
    /**
     * 备注
     */
    private String remarks;
    /**
     * 就诊时间
     */
    @Past
    @JsonFormat(shape = JsonFormat.Shape.STRING , pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private LocalDateTime visitTime;

    //123
}
